package com.example.demo.thread.ch4.case02;

import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;

/**
 * @author: htc
 * @date: Created in 14:34 2019/1/9.
 */
public class DelayItem {
    private long timestamp;
    private AtomicInteger sampleCount = new AtomicInteger(0);
    private AtomicLong totalDelay = new AtomicLong(0);

    public DelayItem(long timestamp) {
        this.timestamp = timestamp;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public AtomicInteger getSampleCount() {
        return sampleCount;
    }

    public void setSampleCount(AtomicInteger sampleCount) {
        this.sampleCount = sampleCount;
    }

    public AtomicLong getTotalDelay() {
        return totalDelay;
    }

    public void setTotalDelay(AtomicLong totalDelay) {
        this.totalDelay = totalDelay;
    }
}
